From: Florian Eckert Date: Wed, 29 Mar 2023 06:59:27 +0000 (+0200) Subject: lui-theme-material: add again no password set hint X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=2bc80099bd2ab13082e19724fa95eacd56e80323;p=project%2Fluci.git lui-theme-material: add again no password set hint This was accidentally deleted with commit: bec2c7e2b50e062575f3649ccd76b81af41b9820 Signed-off-by: Florian Eckert --- diff --git a/themes/luci-theme-material/luasrc/view/themes/material/header.htm b/themes/luci-theme-material/luasrc/view/themes/material/header.htm index 2b890da034..47f7e4d5ed 100644 --- a/themes/luci-theme-material/luasrc/view/themes/material/header.htm +++ b/themes/luci-theme-material/luasrc/view/themes/material/header.htm @@ -78,9 +78,15 @@
- <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") and path ~= "admin-system-admin-password" then -%> + <%- if luci.sys.process.info("uid") == 0 and luci.sys.user.getuser("root") and not luci.sys.user.getpasswd("root") then -%> +
+

<%:No password set!%>

+

<%:There is no password set on this router. Please configure a root password to protect the web interface.%>

+ <%- if disp.lookup("admin/system/admin") then -%> + + <%- end -%> +
<%- end -%> -